<%--

  @author Kusal Samarakoon
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<script src="${pageContext.request.contextPath}/js/print.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/js/printer.js" type="text/javascript"></script>

<script type="text/javascript">
    $(function () {
        $('#cancelBtnId').val($('#cancelBtn').val());
        $('#printBtnId').val($('#printBtn').val());
    });
</script>

<div id="app-info-module-home-title" class="module-home-title">
    <s:a href="home.do"><img src="${pageContext.request.contextPath}/images/post_letter.png"
                             alt="Letter Of Confirmation"><span><s:label
            value="%{getText('letter_of_confirmation.label')}"/></span></s:a>

    <div id="printbtn" class="form-button-div right-align">
                <%--<input class="printButton" type="button" value="Print" onclick="getPortraitPrintOut();">--%>
            <input type="button" id="printBtnId" onclick="printPage('agreementOuter', 'A4', 'P');"/>
            <input class="printButton" type="button" id="cancelBtnId" onclick="goBack();">


        </div>

</div>

<s:if test="hasActionErrors() || hasActionMessages()">
    <div id="message-box" class="message-box">
        <div class="action-msg"><s:actionmessage/></div>
        <div class="action-err"><s:actionerror/></div>
    </div>
</s:if>


<div id="agreementOuter" class="form-outer">

    <s:label value="Divisional Secretariat" cssClass="float-left"/><br>
    <s:label name="user.getDsDivisions().iterator().next().getEnDivisionName()" cssClass="float-left"/><br>
    <br>

    <s:label name="landApplication.getHolder().getName()" cssClass="float-left"/><br>
    <s:label name="landApplication.getHolder().getContacts().getAddress()" cssClass="float-left"/><br>

    <br>

    <s:label value="Dear Applicant, " cssClass="float-left"/>&nbsp;&nbsp;<%--<s:label name="headOfGO.name"
                                                                           cssClass="float-left"/><s:label value=","
                                                                                                           cssClass="float-left"/>--%><br>

    <h3><s:label value="%{getText('letter_of_confirmation.label')}"/></h3>

    <p style="text-align:justify;">The duly signed Alienation Document is ready.
        <%--The following actions need to be performed before hand over the alienation document.--%> <br></p>


    <p style="text-align:justify;"></p>

    <p style="text-align:justify;">Reference Number :
        <s:label name="landApplication.getRefNumber()"/></p>  <br>


    <s:label value="Regards," cssClass="float-left"/><br><br>
    <s:label value="-----------------------------" cssClass="float-left"/> <br>
    <s:label value="(Signature)" cssClass="float-left"/> <br>
    <s:label name="ordsName" cssClass="float-left"/> <br>
    <%--<s:label value="lo" cssClass="float-left"/> <br>--%>
    <hr>
</div>

<s:hidden id="printBtn" value="%{getText('print.label')}"/>
<s:hidden id="cancelBtn" value="%{getText('back.label')}"/>







